package src.main.java.org.API;
/*
* Cloneable相当于是一个标记接口
* */
public class User implements Cloneable {
    private int id;
    private String username;
    private String password;
    private double[] score;

    public User() {
    }

    public User(int id, String username, String password, double[] score) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.score = score;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double[] getScore() {
        return score;
    }

    public void setScore(double[] score) {
        this.score = score;
    }

}
